/**
 * Created by vasil on 11/5/14.
 */
angular.module('MyApp', [
    'ngRoute'
 ]).config(function($routeProvider) {
        $routeProvider
            .when('/', {
                templateUrl: 'app/views/posts.html',
                controller: 'PostsCtrl'
            })
            .when('/lists', {
                templateUrl: 'app/views/lists.html',
                controller: 'ListGroupCtrl'
            })
            .when('/users', {
                templateUrl: 'app/views/users.html',
                controller: 'UsersCtrl'
            })
            .otherwise({
                redirectTo: '/'
            })
    });